<?php
/**
 * User: aka
 * Time: 2:45
 */

namespace app\get\controller;

use think\facade\Session;
use think\Request;

class Article
{
    public function getMoreArticle(Request $request)
    {
        $articlePage = $request->param('article_page');
        $condition = array();
        $condition['user_id'] = Session::get('user_info.user_id');
        $condition['state'] = 0;
        $articleList = \app\secret\model\Article::where($condition)
            ->order('id desc')->page($articlePage,6)->select();
        return json($articleList);
    }
}